//
//  BToastView.h
//  WBPalm
//
//  Created by 邹 达 on 11-12-7.
//  Copyright 2011 zywx. All rights reserved.
//

#import <UIKit/UIKit.h>

#define F_TOAST_VIEW_WIDTH_PHONE			120
#define F_TOAST_VIEW_HEIGHT_PHONE			80
#define F_TEXTVIEW_POX_HEIGHT_PHONE			40
#define F_TEXTVIEW_FONT_SIZE_PHONE			14
#define F_TEXTVIEW_POX_HEIGHT_PHONE2	    80


#define F_TOAST_VIEW_WIDTH_PAD			240
#define F_TOAST_VIEW_HEIGHT_PAD			160
#define F_TEXTVIEW_POX_HEIGHT_PAD		80
#define F_TEXTVIEW_FONT_SIZE_PAD		24

typedef enum {
	ToastTypePlainText = 0,
	ToastTypeLoading,
} ToastType;

@interface BToastView : UIView {
	UIActivityIndicatorView *mIndicatorView;
	UILabel *mTextView;
	int mPos;
}

@property (nonatomic, retain) UIActivityIndicatorView *mIndicatorView;
@property (nonatomic, retain) UILabel *mTextView;
@property int mPos;
+ (CGRect)viewRectWithPos:(int)inPos wndWidth:(float)inWndWidth wndHeight:(float)inWndHeight;
- (id)initWithFrame:(CGRect)frame Type:(int)inType Pos:(int)inPos;
- (id)initWithFrame2:(CGRect)frame Type:(int)inType Pos:(int)inPos;
- (void)setSubviewsFrame:(CGRect)inRect;
@end
